/**
* All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
*
* MmsSuggestionFeedbackServiceAuto
* 意见反馈表
*
* 修改纪录
* 2021-11-01 版本：1.0 zhangqianbo 创建。
* @version 版本：1.0
* @author 作者：zhangqianbo
* 创建日期：2021-11-01
*/

package com.topscomm.mms.service.impl.auto;

import javax.annotation.Resource;
import com.topscomm.basic.IBasicDao;
import com.topscomm.tap.common.DatacodeCache;
import java.util.Map;
import com.topscomm.mms.*;
import com.topscomm.mms.pojo.MmsSuggestionFeedbackEntity;
import com.topscomm.mms.dao.IMmsSuggestionFeedbackDao;


public class MmsSuggestionFeedbackServiceAuto extends MmsService<MmsSuggestionFeedbackEntity,IMmsSuggestionFeedbackDao> {

	/**
	 * @author: zhangqianbo
	 * @date: 2021-11-01
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("module") != null) {
			temp = mapRow.get("module").toString();
			mapRow.put("dismodule", datacodeCache.getValueDynamic("FeedbackModule", temp, "code", "name"));
		}
		if (mapRow.get("ispublic") != null) {
			temp = mapRow.get("ispublic").toString();
			mapRow.put("disispublic", datacodeCache.getValueDynamic("FeedbackIsPublic", temp, "code", "name"));
		}
		if (mapRow.get("questionlevel") != null) {
			temp = mapRow.get("questionlevel").toString();
			mapRow.put("disquestionlevel", datacodeCache.getValueDynamic("FeedbackQuestionLevel", temp, "code", "name"));
		}
		if (mapRow.get("enabled") != null) {
			temp = mapRow.get("enabled").toString();
			mapRow.put("dispenabled", datacodeCache.getValueDynamic("CboYesNo", temp, "code", "name"));
		}
	}

	@Override
	@Resource(name = "mmsSuggestionFeedbackDao")
	public void setDao(IBasicDao<MmsSuggestionFeedbackEntity> dao) {
		super.setDao(dao);
	}
}
